package com.dailyblue.java.project.bookstore.book.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.dailyblue.java.project.bookstore.book.util.JsonResult;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("books")
public class Book implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String bookName;
    private String bookImg;
    private Double bookPrice;
    private Integer authorId;
    private Integer columnId;
    private Integer pubId;
    private String bookDesc;
    private String bookTime;
    @TableLogic(delval = "0",value = "1")
    private Integer state;
    @TableField(exist = false)
    private JsonResult author;
    @TableField(exist = false)
    private JsonResult pubInfo;
    @TableField(exist = false)
    private JsonResult count;
}
